<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%request.setAttribute("pageTitle", "标签管理"); %>
<%@ include file="../include/header.jsp" %>
<script type="text/javascript" src="/js/tag/workspace.js"></script>
<div style="width:98%;" class="search-header">
<s:form id="listForm" action="/tags" method="get" modelAttribute="tag">
	<%@ include file="../include/_page_form.jsp" %>
	<span class="search-item"><label>名称</label><s:input path="name" placeholder="名称/拼音/拼音首字母" size="20"/> </span>
	<span class="search-item"><label>用户</label><%@ include file="../include/_select_users.jsp" %></span>
	<span class="search-btn"><input type="submit" value="搜索" /></span>
</s:form>
</div>
<table style="width:500px;margin:3px 0px 3px 10px;">
	<tr class="caption"><td>名称</td><td>&nbsp;</td></tr>
	<c:forEach items="${tags.content}" var="tag" varStatus="count">
	<tr <c:if test="${count.index % 2 ==0 }">class="odd"</c:if> dataid="${tag.tagId }" >
		<td><c:out value="${tag.name }" /> </td>
		<td>
			<a href="javascript:void(0);" class="js-oper-delete" name="<c:out value="${tag.name }" />" url="/tags/${tag.tagId}/delete">删除</a>
		</td>
	</tr>
	</c:forEach>
</table>
<%@ include file="../include/_page_footer.jsp" %>
<%@ include file="../include/footer.jsp" %>